Forums / General / ez Publish caching problems...

ez Publish caching problems...

Author Message

Uchendu Nwachukwu

Sunday 29 May 2005 8:20:48 am

I have a problem with ez Publish, in that it seems incapable of wiping the cache whenever a new story is published. The only way I can get new stories to appear on the site is by manually wiping the ez/var/<siteaccess>/cache folder. This, as you can imagine, is highly tedious, and I can't expect my client to do that. It's also annoying to have to wipe the entire cache just to test a template change. Clicking the cache clearing buttons in the admin panel doesn't work, even though it reports that caches were cleared successfully.

I've CHMODed the ez/var/<siteaccess> folder to 777 as a troubleshooting measure, but it doesn't work.

System information is below.

Anyone got any pointers? Thanks much.

<b>ez Publish</b>
Site: www.africansuntimes.com/dev/index.php?
Version: 3.5.1 (3.5.1)
SVN revision: 10652
Extensions: Not in use.

<b>PHP</b>
Version: 4.3.11
Extensions: zip, xslt, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, posix, pcre, overload, mysql, mhash, mcrypt, mbstring, imap, iconv, gettext, gd, ftp, exif, domxml, dbase, curl, ctype, calendar, bz2, bcmath, zlib, openssl, Zend Optimizer
Miscellaneous: Safe mode is off.
Basedir restriction is off.
Global variable registration is off.
File uploading is enabled.
Maximum size of post data (text and files) is 8M.
Script memory limit is Unlimited.
Maximum execution time is 300 seconds.

I also know that PHP is running in CGI mode, not as an Apache module.

kracker (the)

Sunday 29 May 2005 11:36:08 am

Weeel, you do have options :), you can disable various levels of the cache system.

Alternately you can refer to the clear cache script which can quickly clear the cache (per subsystem) quickly.

[kracker@konfines]# clearcache.sh --help
Usage: bin/shell/clearcache.sh [options]

Options: -h
         --help                     This message
         --var-subdir=DIR           Use this subdirectory under var as root
         --clear-image              Remove image cache
         --clear-content            Remove content cache(default)
         --clear-ini                Remove ini file cache
         --clear-codepage           Remove codepages cache
         --clear-tpl                Remove template cache
         --clear-tpl-override       Remove template override cache
         --clear-tpl-block          Remove template-block cache
         --clear-ts                 Remove translation cache
         --clear-expiry             Remove expiry cache
         --clear-urlalias           Remove url alias cache
         --clear-sortkey            Remove sort key cache
         --clear-classidentifiers   Remove class identifier cache
         --clear-rss                Remove RSS cache
         --clear-transformations    Remove character transformation cache
         --clear-all                Remove all above caches

Example:
bin/shell/clearcache.sh --clear-image --clear-tpl

You should try to clear all the cache for your specific siteaccess like this:

bin/shell/clearcache.sh --var-subdir=<siteaccess> --clear-all

or just genericly for everything

bin/shell/clearcache.sh --clear-all

//kracker
<i>korn : i'm hiding</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Kristian Hole

Monday 30 May 2005 5:47:54 pm

Hi

Does your new stories show up if you clear the "content" cache in the admin interface after you have published a new story?

Then you need to add your "ast" siteaccess to the AvailableSiteDesignList in content.ini

http://www.ez.no/ez_publish/documentation/faq/general/content_does_not_appear_in_admin_after_publish

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Uchendu Nwachukwu

Monday 30 May 2005 8:08:43 pm

I don't have to clear any caches to get new articles to show up in the admin interface. They show up automatically.

But to get them to show up on the actual user site, I have to wipe the var/<siteaccess>/cache folder.

Just to be clear, are you saying I should edit settings/content.ini, or settings/siteaccess/<siteaccess>/content.ini.append.php?

And just what does AvailableSiteDesignList do? There doesn't seem to be much documentation on it.

Thanks in advance. :)

Kristian Hole

Tuesday 31 May 2005 8:15:11 am

You should _never_ change the settings in settings/*.ini..

Allways change or add it in the settings/siteaccess/<siteaccess>/*ini.append.php or in settings/override/*.ini.append.php

You need to add your sitedesign (ast?) to the content.ini.append.php in your administrator siteaccess. This is because it needs to know which siteaccesses are available, and which caches need to be cleared.

The inifiles are much better documented in the new and upcomming documentation :-)

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Marek W

Tuesday 31 May 2005 3:58:37 pm

I have similar caching problems with eZ 3.6 (after upgrade)

1. AlwaysUpdateArray from static cache is not working for me
2. Not all view caches are refreshed, for example I have following folder tree:

-Folder 1
--Folder 2
---Article

On Folder 1 view I'm listing all articles from all subfolders (Folder 2 etc.)

After any change in Article, Folder 1 is not updated, only Folder 2 and Article is refreshed, I need to use "Clear content caches" button to refresh all views

3. Removing object doesn't remove it from static cache

If I remember correctly, point 1 and 2 was working in eZ 3.5 (there was no settings changes after upgrade). Any ideas? Thanks for help!

Uchendu Nwachukwu

Saturday 18 June 2005 3:39:05 pm

Kristian, I did what you said, but the problem still persists. I hit the "Clear All Caches" button, but the cache files remain in the var/ast/ folder.

Nathan Kelly

Wednesday 22 June 2005 9:26:06 pm

Hi there,

I'm having very similar problems with Ver 3.5, particularly with template overrides and the like, it's very frustrating having to clear cache manually every time I make the slightest change.

The admin cache manager says its clear but I check the cache and nothing has been deleted.

Also the admin page views seem to be heavily cached, in Content Structure for instance, the tool bar across the top (preview, details, translations etc.) when I select preview (or any other) the page reloads but nothing changes, I then have to clear all caches manually and refresh the page to get the preview pane to show up, and this is consistent across the entire admin interface. Makes managing the site very cumbersome and I don&#8217;t think my client will be very happy.

Not what I expected from a paid professional licence at all.

Pardon me while I burst into flames...

Kristian Hole

Thursday 23 June 2005 12:19:40 am

Try the following checklist

Log in as the root user and set permissions 777 to all of the var directory

su
 *type root password*
cd /path/to/your/ezpublish/installation
chmod -R 777 var

Go to administration interface, Setup, ini settings, choose content.ini, Choose siteaccess as written below:

For user siteaccess (ast):
Check in [VersionView]group that AvailableSiteDesignList contains you user design.

For administration siteaccess:
Check in [VersionView]group that AvailableSiteDesignList
contains you user design.

Check file site.ini.
Verify that [FileSettings]
VarDir is the same for both user and administration siteaccesses

Nathan: Everytime you add a new template to the system you need to clear the template+content cache to make eZpublish aware of the new templates.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Nathan Kelly

Thursday 23 June 2005 6:06:51 pm

Hi Kristian, thankyou for your advice, I have followed the steps as you mentioned and made any necessary changes but to no avail.

The cache still will not clear through the Admin interface, even though it says it has, using fine grained control will not clear it either.

As far as clearing the template+content cache with every change I am aware of this, problem is obviously the cache will not clear and must be cleared manually.

Overall I'm very happy with the power and flexibility of EZP, but this issue is placing a considerable burden on my deadline and it's fast becoming a very costly exercise.

Is there anything else that may help me to overcome this problem?

Pardon me while I burst into flames...

Uchendu Nwachukwu

Sunday 26 June 2005 8:10:18 am

Like Nathan, I followed the checklist, but it still doesn't wipe the cache. :(

Kristian Hole

Monday 27 June 2005 1:31:34 am

Hmm.. does it work if you set


 ViewCaching=disabled

in [ContentSettings] of settings/siteaccess/(insert name of your user siteaccess)/site.ini.append.php ?

Verify that it has been set, by the administration interface..

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Nathan Kelly

Monday 27 June 2005 4:30:30 pm

No, ViewChaching is already disabled.

Anything else? This is costing me a small fortune!!!

Pardon me while I burst into flames...

Łukasz Serwatka

Monday 27 June 2005 11:02:12 pm

Hi Nathan,

Try with disabled SmartViewCache. Look in to viewcache.ini.append.php files for both siteaccess and set SmartCacheClear=disable.

What DebugOutput says? Try enable it.

You should have ViewCaching=enabled for admin interface. This a reason that your tabs (translation, details, etc) not working correct

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Nathan Kelly

Tuesday 28 June 2005 4:58:00 pm

<i>
Hi Nathan,

Try with disabled SmartViewCache. Look in to viewcache.ini.append.php files for both siteaccess and set SmartCacheClear=disable.

What DebugOutput says? Try enable it.

You should have ViewCaching=enabled for admin interface. This a reason that your tabs (translation, details, etc) not working correct
</i>

Ok now I'm seeing some changes... My admin interface tabs are now working correctly with ViewCaching=enabled for the admin siteaccess.

However I still see no change when trying to clear the cache via admin with the SmartCacheClear=disable on both siteaccesses.

What if anything should I try next?

Pardon me while I burst into flames...

Łukasz Serwatka

Tuesday 28 June 2005 11:32:41 pm

When you publishing new content, your cache is cleared and new content appears in your website?

Do you have any errors in DebugOutput?

Does your PHP work in safe_mode?

I suppose configuration problem. All problems with cache pregenartion were fixed in 3.5.2 release. I can reporduce your error only when are wrong permissions set to var directory...

You can install plain 3.5.3 version and check if problem still exists.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Nathan Kelly

Wednesday 29 June 2005 1:50:35 am

<i>
When you publishing new content, your cache is cleared and new content appears in your website?
</i>
---
Actually my content does not appear at all...
Reference:
http://ez.no/community/forum/setup_design/content_won_t_display_using_module_result_content

<i>
Do you have any errors in DebugOutput?
</i>
---
Yes, I have a warning as you can see in above forum post link that states:-
<b>Warning: eZTemplate</b>

No template could be loaded for "node/view/full.tpl" using resource "design"

<i>
Does your PHP work in safe_mode?
</i>
---
Yes. What could this tell me though?

<i>
I suppose configuration problem. All problems with cache pregenartion were fixed in 3.5.2 release. I can reporduce your error only when are wrong permissions set to var directory...

You can install plain 3.5.3 version and check if problem still exists.
</i>
---

Well legally I can't install the new version as the version 3.5.0 I have was purchased on professional licence with no option to upgrade. So unless Ez Systems agree to this I am stuck with this version.

Thankyou for your suggestions though, hopefully there will be a solution somewhere, as I said this is becoming very costly.

Cheers.

Pardon me while I burst into flames...

Łukasz Serwatka

Wednesday 29 June 2005 1:55:26 am

Nathan, upload small PHP script.

info.php for example with

<?php 
    phpinfo();
?>

Than run this script via web-browser. If you will have enabled safe_mode, ask administrator about disable it for your eZ publish root directory.

If you need professional support look here
http://ez.no/services/support

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Nathan Kelly

Wednesday 29 June 2005 2:10:55 am

Wow that was quick...

Yes I have looked at EZ support options but it's outside my budjet, I am however seeking outside support from Martin Bauer at the moment.

I'll check PHP info now thanks.

Pardon me while I burst into flames...

Nathan Kelly

Wednesday 29 June 2005 2:23:01 am

Ok Lukasz,

I may have missunderstood you when you asked:

<i>Does your PHP work in safe_mode?</i>

Yes it does work in safe mode, but safe mode is off. Sorry I've just got to get around the slight language barier.

If you had said <b>is</b> your PHP running in safe mode? I would have said no...

So safe mode is off at the moment.

Pardon me while I burst into flames...