<p>Also make sure your Cache option is set to OFF in MAMP > Preferences > PHP. I think it defaults to OPCache which can cause problems with local development if it set to on.</p>

CC BY-SA 3.0
2016-09-14T15:26:30.563Z
2016-09-14T15:26:30.563Z
Ant Cooper
<p>Ok I have resolved this by deleting all the cache files in the craft|storage|runtime|cache folder. But whilst this has worked my question is now why did it happen. Not something I want to experience on a live site?</p>

CC BY-SA 3.0
2016-09-09T10:39:35.893Z
2016-09-09T10:39:35.893Z
Lettie
<p>I have just gone back to a site I am working on locally to continue working on it. 2 days ago it was working fine and I have made no changes. I now have this error when I load the homepage.</p>

<p>unserialize(): Error at offset 0 of 24 bytes</p>

<p>C:\Websites\website\craft\app\framework\caching\CCache.php(108)</p>

<p>Anyone have any idea why this has happened and how to fix it as I say nothing had changed with the files or with the MAMP install.</p>

<p>Cheers</p>

<cache><error>
Error on homepage of local server no changes made since last working?
# Error on homepage of local server no changes made since last working?

(Asked by: username_0 on 2016-09-09)

I have just gone back to a site I am working on locally to continue working on it. 2 days ago it was working fine and I have made no changes. I now have this error when I load the homepage.

unserialize(): Error at offset 0 of 24 bytes

C:\Websites\website\craft\app\framework\caching\CCache.php(108)

Anyone have any idea why this has happened and how to fix it as I say nothing had changed with the files or with the MAMP install.

Cheers

**Tags:** cache, error

---

## 2 answers

### Answer by username_1 on 2016-09-14. Score: 1

Also make sure your Cache option is set to OFF in MAMP > Preferences > PHP. I think it defaults to OPCache which can cause problems with local development if it set to on.


---

### Answer by username_0 on 2016-09-09. Score: 1

Ok I have resolved this by deleting all the cache files in the craft|storage|runtime|cache folder. But whilst this has worked my question is now why did it happen. Not something I want to experience on a live site?


---

