First off love this module, my site was getting slammed by anonymous users and this significantly cut down resources.

But my logs are filled with this error

strpos() [<a href='function.strpos'>function.strpos</a>]: Empty delimiter in /xxx/xxxx/sites/all/modules/cachestatic/cachestatic.module on line 278.

The offending line in the code -

if( strpos( $path, trim( $Url ) ) !== FALSE ) {

Comments

marcus0263’s picture

Interesting, did some google around and chaged -

Line 278 from -

if( strpos( $path, trim( $Url ) ) !== FALSE ) {

to -

if( stripos( $path, trim( $Url ) ) !== FALSE ) {

This seems to have fixed it, not sure if it's a version thing or not for I found both strpos and stripos both as valid when I googled. I'm not a coder so let me know if this blows something up or not.

my version of php is -

cachestatic # php -v
PHP 5.2.12-pl0-gentoo (cli) (built: Jan  6 2010 12:15:17) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Cheers

mikeytown2’s picture

@marcus0263 You might want to switch to boost. It's been 10 months since any code has been committed here.

marcus0263’s picture

So has this module been abandoned?

mikeytown2’s picture

Thats my guess; I implemented most of the new ideas of this fork back into boost. If you see something that is missing, let me know.
http://drupal.org/project/usage/cachestatic - 10 users
http://drupal.org/project/usage/boost - 4,253 users

marcus0263’s picture

Cool, thanks for the heads up