Comments (4)
More specifically, the updater says its updating the month archive but doesn't actually. A wipe of the cache and a full rebuild has fixed it every time for me. The first potential culprit is, I think, engine/update.sh I just haven't had a chance to dig into it yet.
from secondcrack.
ok, so update.sh is a wrapper for calling update.php, update.php wraps a call to Updater::update(), since its not useful to post the entirety of the architecture I'll stop there.
I'm looking at Updater::post_filenames_in_year_month and how its different from Updater::most_recent_post_filenames because the issue seems to be (at least in my specific test case) that the most recent post isn't making it into the posts array thats passed to the Post::write_index for the archives, when it does for the frontpage.
from secondcrack.
the difference is post_filenames_in_year_month calls posts_in_year_month which reads from cache/posts-[year]-[month]-[md5 of require_tag . " " . require_type]
and most_recent_post_filenames reads from cache/dir-[md5 of source_path . /posts]
for some reason the post doesn't make its way into the posts in year month cache, although it does in the dir- cache, so thats the next place I'll look into, how/when those caches are created.
from secondcrack.
Its entirely possible that I'm missing something, but it seems like once the cache file is created for the month archive it never gets updated unless its manually deleted because of the following lines:
engine/Updater.php 48 - 50
if (file_exists($cache_fname)) {
$files = unserialize(file_get_contents($cache_fname));
}
since the $cache_fname value is set to:
$cache_fname = self::$cache_path . "/posts-$year-$month-" . md5($require_tag . ' ' . $require_type);
and that filename won't change for the month's archive, it will only reach the else statement and update the archive cache file when it has been deleted.
By eliminating that if statement, it correctly updates the archive for me, but I feel like I'm missing something.
from secondcrack.
Related Issues (19)
- Post hooks
- Feature Request: Slug override HOT 2
- Pagination HOT 1
- other extension than .txt? HOT 2
- feature: github pages hook? HOT 1
- Post archive may not reorder after post deletion
- Feature request: Process sub folders inside "pages" (and their contents)
- Format change for Tag pages and RSS Feeds HOT 2
- Windows Support HOT 3
- Editing post slugs unreliable
- Support for Scheduled Publishing HOT 1
- strtolower on slug HOT 1
- Zip Files
- i feel my site is deformed. HOT 1
- License? HOT 2
- Lack of commenting within source code HOT 1
- Posting with bookmarklets HOT 2
- Tag pages should use numbered pagination, not monthly Archives HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secondcrack.