Cache keeps filling up MySQL datebase
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
My real concern is providing a solution for client, since they are pretty simple minded. Namely they would be confused if having made changes to content, they could not immediately view them. Just that simple.
Also a wee bit confusing to me as well. (1.2.5)
config.inc.php
$phpwcms["cache_timeout"] = 0;
site structure (website root level - home page)
cache: (checkbox) X off
article - home page
cache: (checkbox) X off
and as coopersred suggested:
index.php
$cache_update = 0;
$cache_insert = 0;
still no luck
To be honest, Oliver, I think this is a great feature, cache control, but I think it needs some polishing. As far as things right now...
even using the 'delete cache' in backend is not resolving this problem.
At the end of the day, the only thing I can suggest to client is to use the CNTRL+F5 strategy inside IE, but I am confused as to when and where the updates appear to site visitors......hmm....
Has the new CVS released adressed this?
cheers
Also a wee bit confusing to me as well. (1.2.5)
config.inc.php
$phpwcms["cache_timeout"] = 0;
site structure (website root level - home page)
cache: (checkbox) X off
article - home page
cache: (checkbox) X off
and as coopersred suggested:
index.php
$cache_update = 0;
$cache_insert = 0;
still no luck
To be honest, Oliver, I think this is a great feature, cache control, but I think it needs some polishing. As far as things right now...
even using the 'delete cache' in backend is not resolving this problem.
At the end of the day, the only thing I can suggest to client is to use the CNTRL+F5 strategy inside IE, but I am confused as to when and where the updates appear to site visitors......hmm....
Has the new CVS released adressed this?
cheers
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Hi Oliver,
Well basically any change to content in homepage (root) does not immediately show up. Very strange really, since I set all the above settings to completely bypass caching.
suggestions?
site:
http://www.southernmaoribusiness.org.nz/
if I make changes to 'text' in backend to homepage,
they do not display the update in public site..
Well basically any change to content in homepage (root) does not immediately show up. Very strange really, since I set all the above settings to completely bypass caching.
suggestions?
site:
http://www.southernmaoribusiness.org.nz/
if I make changes to 'text' in backend to homepage,
they do not display the update in public site..
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
That is possible, will have to look into that....
I had discussed upgrading to 1.2.6 with Pappnase, but I am guessing that the same situation will occur. Very strange, really. One thing to mention, but I do not think this is related. I set up the site using:
$phpwcms["site"] = "http://unix301.tm136.taylormade.net.nz/";
because the client had yet to decide on a domain name...
now had been changed to:
$phpwcms["site"] = "http://www.southernmaoribusiness.org.nz/";
could this change have affected 'something else' that I am not aware of? ...because during deving under the first site definition (taylormade.net.nz), I do not remember this problem....
the original setup generated $_SERVER['DOCUMENT_ROOT'] as:
/hsphere/local/home/unix301/unix301.tm136.taylormade.net.nz'
but now as far as the server is concerned all files are here:
/hsphere/local/home/southernmaoribusiness.org.nz'
would uncommented the $_SERVER['DOCUMENT_ROOT'] be any benefit?
Just cannot understand this situation.
I had discussed upgrading to 1.2.6 with Pappnase, but I am guessing that the same situation will occur. Very strange, really. One thing to mention, but I do not think this is related. I set up the site using:
$phpwcms["site"] = "http://unix301.tm136.taylormade.net.nz/";
because the client had yet to decide on a domain name...
now had been changed to:
$phpwcms["site"] = "http://www.southernmaoribusiness.org.nz/";
could this change have affected 'something else' that I am not aware of? ...because during deving under the first site definition (taylormade.net.nz), I do not remember this problem....
the original setup generated $_SERVER['DOCUMENT_ROOT'] as:
/hsphere/local/home/unix301/unix301.tm136.taylormade.net.nz'
but now as far as the server is concerned all files are here:
/hsphere/local/home/southernmaoribusiness.org.nz'
would uncommented the $_SERVER['DOCUMENT_ROOT'] be any benefit?
Just cannot understand this situation.
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
you have to replace DOC_ROOT by current path.
Domain name has nothing to do with it - because system checks always against current URL. So try to empty cache first in admin section.
And it's always good to use:
I will make another change to cached content where a hash will be used to compare against content. Might be better than against URI.
Oliver
Domain name has nothing to do with it - because system checks always against current URL. So try to empty cache first in admin section.
And it's always good to use:
Code: Select all
$phpwcms["site"] = "http://".$_SERVER['SERVER_NAME']."/";
Oliver
Thanks Oliver...will sort this out
I had a wee question about SSL in Wcms - is it planned to be implemented?
I just posted source (Marcus and Me) of shopping cart and it works except for SSL implementation.
I wanted to ask a BIG favor and have you take a look at functionality.
http://www.gripfast.co.nz/index.php?balls_rugby_union
(unfortunately this cart will be removed later this week)
I posted the source here:
http://intermundi.webbiznz.co.nz/wcms/w ... cation.zip
No where near what you might have in mind, since you did mention a simple cart down the line.
I just wanted to ask if you might lend any info about SSL....
since this hack is ready to go except for this aspect.
Viele Danke,
I had a wee question about SSL in Wcms - is it planned to be implemented?
I just posted source (Marcus and Me) of shopping cart and it works except for SSL implementation.
I wanted to ask a BIG favor and have you take a look at functionality.
http://www.gripfast.co.nz/index.php?balls_rugby_union
(unfortunately this cart will be removed later this week)
I posted the source here:
http://intermundi.webbiznz.co.nz/wcms/w ... cation.zip
No where near what you might have in mind, since you did mention a simple cart down the line.
I just wanted to ask if you might lend any info about SSL....
since this hack is ready to go except for this aspect.
Viele Danke,
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
If you need SSL just change
to
Maybe not the best solution - but it is working.
It might also be possible to build a custom workaround to change "https://". Use "frontend_init" for this and make a check against structure level or level ID or whatever.
Maybe working like this:
or implement a check which redirects to the right protocol.
Oliver
Code: Select all
$phpwcms["site"] = "http://".$_SERVER['SERVER_NAME']."/";
Code: Select all
$phpwcms["site"] = "https://".$_SERVER['SERVER_NAME']."/";
It might also be possible to build a custom workaround to change "https://". Use "frontend_init" for this and make a check against structure level or level ID or whatever.
Maybe working like this:
Code: Select all
if($aktion[0] == 5) { // 5 = structure level ID
$phpwcms["site"] = "https://".$_SERVER['SERVER_NAME']."/";
} else {
$phpwcms["site"] = "http://".$_SERVER['SERVER_NAME']."/";
}
Oliver
Thanks Oliver,
the cache issue has been resolved by using:
I wanted to ask a question, regarding the summary interface that uses the FCK 2 Editor. The client has asked for more working area in summary interface in which to add content. (WYSIWYG and Text w/Images are fine). Here is screen capture of summary section (FCK2)
I wanted to ask if you might point me in the right direction towards making this modification, basically increasing its height.
Cheers & Thanks,
UPDATE:
Ok, went in and found it, basically the WYSIWYG array declared in
inc/inc_tmpl/article.editsummary.tmpl.php
$wysiwyg_editor = array(
'value' => $article["article_summary"],
'field' => 'article_summary',
'height' => '550px',
'width' => '440px',
'rows' => '15',
'editor' => $_SESSION["WYSIWYG_EDITOR"],
'lang' => 'en'
);
the cache issue has been resolved by using:
Code: Select all
$phpwcms["site"] = "http://".$_SERVER['SERVER_NAME']."/";
I wanted to ask if you might point me in the right direction towards making this modification, basically increasing its height.
Cheers & Thanks,
UPDATE:
Ok, went in and found it, basically the WYSIWYG array declared in
inc/inc_tmpl/article.editsummary.tmpl.php
$wysiwyg_editor = array(
'value' => $article["article_summary"],
'field' => 'article_summary',
'height' => '550px',
'width' => '440px',
'rows' => '15',
'editor' => $_SESSION["WYSIWYG_EDITOR"],
'lang' => 'en'
);
Last edited by jsw_nz on Mon 14. Nov 2005, 23:26, edited 1 time in total.
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Just a quick note to mention that I've had this problem on my site, too - I thought that it was my webserver, but after some investigation I discovered that MySQL was hanging when trying to update the 55MB(!) phpwcms_cache table, and killing the site for half an hour at the time until the zombie processes disappeared.
I've applied the fix on the previous page, which should hopefully sort it.
I've applied the fix on the previous page, which should hopefully sort it.
http://www.shinypixel.co.uk - WCMSBlog :: The blogging Module for Phpwcms.
Current version : 0.6 [Public Release] - Includes RSS support
Next Version : 0.7 [Public Release] - will include IP banning and blog entry categories
Current version : 0.6 [Public Release] - Includes RSS support
Next Version : 0.7 [Public Release] - will include IP banning and blog entry categories
Yep this solve it Thanks... I was looking for a solution!!
coopersred wrote:Yes every url seems to be unique
But I seemed to have solved the problem or at least found a work around. In the original index.php file lines 89-92 were set like this:
//db based page caching
$cache_enabled = 0;
$cache_update = 1;
$cache_insert = 1;
and when set like that every page access filled the table phpcms_cache
When I changed lines 89-92 to this
//db based page caching
$cache_enabled = 0;
$cache_update = 0;
$cache_insert = 0;
it stopped my cache from filling up.
Don't know if this will cause me problems but so far so good. Maybe i've found the cache turn off swicth??
http://www.studmed.dk Portal for doctors and medical students in Denmark