Page 1 of 1

Cache problem on server

Posted: Wed Dec 24, 2008 2:40 am
by AlK
Hi,

I've created a website using CMSms and when I run it locally, I have no problem. When I upload it online, there is a cache problem : when I edit a page (or change template...), I have to clear the cache to see modifications.

Other problem, with the Album module, when I have a multi-album page, if I click on a thumbnail of an album, I stay on the same page (the albums list).

I'm pretty sure that these two problems are linked. When I activate the debug mode (on the config.php file), the two problems are solved.

Same problems occurs when I use a fresh installation of CMSms, with default configuration.
I'm using a shared web hosting service (OVH). Maybe useless information, but that server's timezone is the timezone of Paris.

Can you help me ?

----------------------------------------------

Cms Version: 1.5.1

Installed Modules:

CMSMailer: 1.73.14
FileManager: 0.4.3
MenuManager: 1.5.3
ModuleManager: 1.2.1
News: 2.9.1
nuSOAP: 1.0.1
Printing: 0.2.6
Search: 1.5.2
ThemeManager: 1.0.8
TinyMCE: 2.4.10
AjaxMadeSimple: 0.1.6
Album: 0.9.3

Config Information:

php_memory_limit:
process_whole_template: true
max_upload_size: 8000000
default_upload_permission: 664
assume_mod_rewrite: false
page_extension:
internal_pretty_urls: false
use_hierarchy: false

Php Information:

phpversion: 5.2.6
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
memory_limit: 32M
max_execution_time: 30
safe_mode: Off (False)
session_save_path: /tmp (1777)

Server Information:

Server Api: cgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.68

----------------------------------------------

Re: Cache problem on server

Posted: Wed Dec 24, 2008 2:59 am
by JeremyBASS
Hello
>>>when I edit a page (or change template...), I have to clear the cache to see modifications

yeah that's how it is... and the way out is to set it in options tab not cacheable... draw back... bigger hits on the DB... hopefully soon it'll be realized the breaking free from the DB is important... I has be shown that it's possible to clear "that" page, so it's more then possible to have it work... just not yet...

>>>if I click on a thumbnail of an album...

that is the case for all most all mods.. if you want a landing page you need to for one... search landing page, I'm a stickler about having one so I've done a fair amount of workarounds on this...

jeremyBass

Re: Cache problem on server

Posted: Wed Dec 24, 2008 3:37 am
by AlK
Ok thanks for the answer.

But it does not solve my problem. Ok, for pages, I'll clear the cache each time I make a little modification. But I can't use Albums module. I forget to mention, but :
1) I create two albums and a page to display these albums.
2) clear the cache
3) go to the page, ok I have the list of albums.
4) click on a thumbnail of an album, it displays the albums list (but the url changes)
5) clear the cache
6) refresh the page (with the new url), ok I see the album content
7) when I go back to the album list, i see the album content again. (must clear the cache to have the albums list)

It's like all the pages are cached and never updated. What's wrong with the cache ?

Re: Cache problem on server

Posted: Wed Dec 24, 2008 4:14 am
by JeremyBASS
you need to trun cache off if you want it to show up right away...

it's in the options tab of each page... so, in the case of the album... that page has cached truned on..

>>>5) clear the cache

dead give away... the only thing wronge with the cache system is that fact that it doesn't clear a page when it's created or edited... I can be done... it just hasn't...

hope that was clearer... :)

now if you came back and stay you unchecked the box on each page then ... you may have a bug...

Re: Cache problem on server

Posted: Wed Dec 24, 2008 6:04 am
by AlK
There is no "Cachable" checkbox in the options of an Album page. Btw, in database, pages marked as "albumcontent" are not cachable.
I have definitely a bug with that server... I'll try by myself, but I'm still interested by some ideas or clues :)

Re: Cache problem on server

Posted: Wed Dec 24, 2008 6:18 am
by JeremyBASS
>>> no "Cachable" checkbox  in the options of an Album page

then yes.. if you don't have a "Cachable:" checkbox on the option tab of your page which has the album tag,  {cms_module module='album'}, then yes... you do have a bug... all pages have that... so if it's not showen u in the page's option tag it's time to go the debug, or reinstall way... or just submit a bug report...

cheers jeremy

Re: Cache problem on server

Posted: Wed Dec 24, 2008 6:25 am
by AlK
No I don't use {cms_module module='album'}, I make an Album page by choosing "Album" in the "Content type" list in the page administration...

Re: Cache problem on server

Posted: Wed Dec 24, 2008 6:32 am
by JeremyBASS
oh god.. thats  why... perasonly I'd use the {cms_module module='album'} on a normal page... that is where i've had best usage... up to you...

Re: Cache problem on server

Posted: Wed Dec 24, 2008 6:52 am
by AlK
Wow ! thanks for the tip ! I could not imagine that I should do like that :)
It works... but the method with Content type was simpler for my mum... too bad. Anyway, thank you for the help !