dropplets icon indicating copy to clipboard operation
dropplets copied to clipboard

Caching generates ".html" file.

Open jimmythompson opened this issue 13 years ago • 5 comments

Apologies for the ambiguity with the title, you must think I'm stupid. :smile:

In my posts/cache I'm getting a file called .html, literally no filename is given, only the extension. Is this intended? I was under the impression they were going to be stored by post name, similar to how the markdown is stored in posts/.

jimmythompson avatar May 05 '13 11:05 jimmythompson

That's a bug.

I think the problem occurs here:

 $slug = str_replace(array(FILE_EXT), '', $slug_array[3]);

This method of getting slug name is not very good.

bndr avatar May 05 '13 12:05 bndr

Haven't run into this yet, but added it to the "bug" list.

jptksc avatar May 05 '13 17:05 jptksc

@circa75 Have you changed your index.php to turn $post_cache and $index_cache on? Post caching is disabled for anyone not willing to edit the source afaik.

jimmythompson avatar May 05 '13 17:05 jimmythompson

I'd like to look into this issue, can you answer some questions please:

  1. Did you install Dropplets in a sub-directory?
  2. Did your post name have any special characters?

bndr avatar May 05 '13 22:05 bndr

  1. http://jimmythompson.co.uk/blog/
  2. The post name is just the welcome post re-added.

jimmythompson avatar May 06 '13 09:05 jimmythompson