Bug, or am I doing something wrong?

Author Message

K259

Monday 14 June 2004 11:46:17 pm

I've installed v. 3.4(the latest stable) with the corporate design, and have problems with the templates. Let me give an easy example:

I edit
/design/base/override/templates/line/folder.tpl and
/design/corporate/override/templates/line/folder.tpl

The line view of folders is showing "View list". These files mentioned above are the only two files which contains "View list" sentence. I change both files and put a x behind "View listx", save the files, and clear the cache through ./bin/shell/clearcache.sh --clear-all a couple of times, and also through the admin-interface. I changed both these files, to be sure that I edited the right override file, BUT when I view the site, the sentence is still: "View list" and NOT "View listx".

I'm totally confused. Are there bug in the caching system, or am I doing something wrong?

Jan Borsodi

Tuesday 22 June 2004 1:33:31 am

There shouldn't be any need to remove the var/cache directory manually.

I tried the following.
- Installed Corporate package (3.4.0) using the setup wizard
- Accessed the site and created a subfolder (to get the "View list")
- Modified the <i>design/corporate/override/templates/line/folder.tpl</i> file added an x to the "View list" line
- Cleared all caches with <i>bin/shell/clearcache.sh --clear-all</i>, refreshed the page and the changes was present.
- Modified the line/folder.tpl file again and added a new x.
- Compiled all templates using the template compiler
http://ez.no/ez_publish/documentation/development/scripting/supplied_scripts/template_compiler
- Cleared the content cache with <i>bin/shell/clearcache.sh</i>, refreshed the page and the changes was present.

What could cause this problems is one of:
- Permissions, when running clearcache.sh --clear-all are all files removed from var/?
- PHP version, which version is used?
- Accelerator, is there an accelerator in use? It could be that it doesn't notice the updated files.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 10:01:17
Script start
Timing: Jan 19 2025 10:01:17
Module start 'layout'
Timing: Jan 19 2025 10:01:17
Module start 'content'
Timing: Jan 19 2025 10:01:17
Module end 'content'
Timing: Jan 19 2025 10:01:17
Script end

Main resources:

Total runtime0.0138 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.1641152.6250
Module start 'layout' 0.00440.0023 741.789139.4609
Module start 'content' 0.00670.0050 781.250089.3359
Module end 'content' 0.01170.0020 870.585934.3047
Script end 0.0137  904.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.8247140.0002
Check MTime0.00128.3915140.0001
Mysql Total
Database connection0.00064.433210.0006
Mysqli_queries0.002014.488530.0007
Looping result0.00000.086710.0000
Template Total0.001611.910.0016
Template load0.00096.485210.0009
Template processing0.00075.393310.0007
Override
Cache load0.00064.471310.0006
General
dbfile0.00107.389880.0001
String conversion0.00000.041640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs