Revert "loolwsd: LRU expiry persistent cache"

This reverts commit 74dcec1d3f.
The cronjob replaces this
This commit is contained in:
Mihai Varga 2015-08-03 21:51:55 +03:00
parent eceb977186
commit b0282a2a03

View file

@ -31,9 +31,6 @@
#include "LOOLProtocol.hpp"
#include "TileCache.hpp"
// 1 hour tile cache expired
#define TILE_EXPIRED 3600000000
using Poco::DigestEngine;
using Poco::DirectoryIterator;
using Poco::File;
@ -96,16 +93,6 @@ std::unique_ptr<std::fstream> TileCache::lookupTile(int part, int width, int hei
return nullptr;
std::string fileName = dirName + "/" + cachedName;
File fileTile(fileName);
if ( fileTile.exists() )
{
Poco::Timestamp timeNow;
if ( timeNow - fileTile.getLastModified() > TILE_EXPIRED )
fileTile.remove();
else
fileTile.setLastModified(timeNow);
}
std::unique_ptr<std::fstream> result(new std::fstream(fileName, std::ios::in));