Joomlatwork
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 19, 2013, 08:01:38 AM

Login with username, password and session length
Search:     Advanced search
15696 Posts in 5207 Topics by 10957 Members
Latest Member: mupemeniamy
* Home Help Search Login Register
+  Joomlatwork
|-+  Joomla accelerate component
| |-+  Support questions
| | |-+  how to disable caching mobile theme?
« previous next »
Pages: [1] Print
Author Topic: how to disable caching mobile theme?  (Read 1071 times)
sky
Newbie
*
Posts: 20


View Profile
« on: May 02, 2010, 03:09:11 PM »

I am using this theme from Joomlart: http://www.joomlart.com/demo/#templates.joomlart.com/ja_teline_iii

This theme is using T3 framework: http://wiki.joomlart.com/wiki/JA_Template_Framework/Overview

It's great because it can detect mobile device and display mobile theme accordingly. However, when people viewed with mobile device, the mobile theme will be cached, and displayed to people not using mobile device also.

How to disable cache for mobile theme?
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #1 on: May 09, 2010, 08:39:10 AM »

You can check if there is a cookie set or you can modify the template once it uses the mobile theme a cookie is set.

Once a cookie is set you can disable the cache with the cookie through:
Quote
Disable cache if the following cookies are used:

Also notice that you can generate different cached pages bassed on the value of the cookie.
Quote
Cookies to support:

Regards,

Richard
Logged
sky
Newbie
*
Posts: 20


View Profile
« Reply #2 on: May 09, 2010, 04:04:01 PM »

You can check if there is a cookie set or you can modify the template once it uses the mobile theme a cookie is set.


I am not a programmer, can you tell me how to create a cookie for my template?
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #3 on: May 11, 2010, 06:48:27 AM »

http://nl.php.net/manual/en/function.setcookie.php

See the examples there.

Note that you must this only within the mobile theme template.

Regards.

Richard
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!